$(function() {
   
    $( "#slider-range" ).slider({
      range: true,
      min: 0,
      max: 1000,
      values: [0 , 1000],
      slide: function( event, ui ) {
        $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
        var start = ui.values[ 0 ];
        var end = ui.values[ 1 ];
        $.ajax({
                    url:"http://webmobi.com/index.php/default/product/range_price",
                    type:"POST",
                    data:"start="+start+"&end="+end,
                    async:true,
                    success: function(kq){
                        
                        $(".listproduct").html(kq);   
                }
            });
      }
      
    });
    $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
      " - $" + $( "#slider-range" ).slider( "values", 1 ) );
    
    
});